import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'auth2_list' })
export class Auth2ListEntity{
    @PrimaryColumn('varchar', { name: 'app_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    appId: string;

    @PrimaryColumn('varchar', { name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userId: string;

    @Column({ name: 'openid', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    openId: string;


}
